using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WangTileEdgeDisplay:MonoBehaviour {

	[SerializeField] string[] data;
	int[] generatedData;



	private void OnDrawGizmos() {
		if(generatedData==null||generatedData.Length!=data.Length) generatedData=new int[data.Length];
		for(int i = 0;i<data.Length;i++) {
			int generated = 0;
			for(int j = 0;j<14;j++) {
				generated*=2;
				if(data[i].Length>j&&data[i][j]=='1') generated++;
			}
			generatedData[i]=generated;
		}
		WangTileRecorder.edgeDisplay=generatedData;
	}


}
